﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Adminster
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div id="cen">
		<table>
			<%using (z.m.db.Database db = new z.m.db.Database()) {
		  foreach (var evt in db.Occasions) {
			%><%:Html.Partial("_Adminster",evt)%><%
	  }
	  }  
			%>
		</table>
	</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptsSection" runat="server">
	<script type="text/javascript">
		function showDetail(element) {
			var url = element.getAttribute("data-id");
			url = urlHost + "Occasion_Detail/Adminster?id=" + url;
			openPopup("#detail", url);
		}
	</script>
</asp:Content>
